﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using PMS.XCMG.Util;

namespace PMS.XCMG.Entity
{
    /// <summary>
    /// 产品Bom清单树
    /// </summary>
    public partial class MaterialBomTree : BusEntity, ITreeModel<MaterialBomTree>
    {
        /// <summary>
        /// 上级Bom清单Id
        /// </summary>
        public string ParentId { set; get; }
        /// <summary>
        /// 产品BomId
        /// </summary>
        public string BomId { get; set; }
        /// <summary>
        /// 组成物料Id
        /// </summary>
        public string MaterialId { set; get; }
        /// <summary>
        /// 物料规格Id
        /// </summary>
        public string SpecId { set; get; }
        /// <summary>
        /// 电气编码
        /// </summary>
        public string EleCode { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { set; get; }

        /// <summary>
        /// 是否包含子级
        /// </summary>
        public bool HasChild { set; get; }
    }

    public partial class MaterialBomTree : BusEntity
    {
        /// <summary>
        /// 上级实体
        /// </summary>
        public MaterialBomTree Parent { set; get; }
        /// <summary>
        /// 下级实体
        /// </summary>
        public List<MaterialBomTree> Children { set; get; }
        /// <summary>
        /// 产品Bom实体
        /// </summary>
        public MaterialBom Product { set; get; }
        /// <summary>
        /// 组成物料实体
        /// </summary>
        public MaterielInfor Materiel { set; get; }
        /// <summary>
        /// 物料规格实体
        /// </summary>
        public MaterielSpec Spec { set; get; }
    }

    /// <summary>
    /// 实体配置
    /// OnModelCreating
    /// </summary>
    public class MaterialBomTreeTypeConfig : BusEntityTypeConfig<MaterialBomTree>, IEntityTypeConfiguration<MaterialBomTree>
    {
        public override void Configure(EntityTypeBuilder<MaterialBomTree> builder)
        {
            base.Configure(builder);

            #region 主外键关系
            builder.HasOne(p => p.Parent).WithMany(p => p.Children).HasForeignKey(p => p.ParentId);
            builder.HasOne(p => p.Product).WithMany(p => p.BomTrees).HasForeignKey(p => p.BomId);
            builder.HasOne(p => p.Materiel).WithMany().HasForeignKey(p => p.MaterialId);
            builder.HasOne(p => p.Spec).WithMany(p=>p.BomTrees).HasForeignKey(p => p.SpecId);
            #endregion

            #region 字段属性:最大长度,是否必需,默认值
            builder.Property(p => p.ParentId).HasMaxLength(EntityDefinition.DefSmallColLen);
            builder.Property(p => p.BomId).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();            
            builder.Property(p => p.MaterialId).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.SpecId).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();

            //builder.Property(p => p.Code).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.EleCode).HasMaxLength(10).IsRequired();
            //builder.Property(p => p.Name).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.Quantity).HasDefaultValue(1);
            #endregion

            #region 备注
            builder.HasComment("产品Bom清单树");
            builder.Property(p => p.BomId).HasComment("产品BomId");
            builder.Property(p => p.ParentId).HasComment("上级Bom清单Id");
            builder.Property(p => p.MaterialId).HasComment("组成物料Id");
            builder.Property(p => p.SpecId).HasComment("物料规格Id");
            //builder.Property(p => p.Code).HasComment("Bom清单编码");
            builder.Property(p => p.EleCode).HasComment("电气编码");
            //builder.Property(p => p.Name).HasComment("Bom清单名称");
            builder.Property(p => p.Quantity).HasComment("数量");
            builder.Property(p => p.HasChild).HasComment("是否包含子级");
            #endregion

            #region 种子数据
            //封头
            builder.HasData(new MaterialBomTree() { Id = "1", ParentId = null, BomId = "1", EleCode = "110", HasChild=false, MaterialId = "1001", SpecId = "1001_01", Quantity=1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "2", ParentId = null, BomId = "2", EleCode = "210", HasChild = false, MaterialId = "1001", SpecId = "1001_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "3", ParentId = null, BomId = "3", EleCode = "310", HasChild = false, MaterialId = "1001", SpecId = "1001_04", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "4", ParentId = null, BomId = "4", EleCode = "410", HasChild = false, MaterialId = "1001", SpecId = "1001_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "5", ParentId = null, BomId = "5", EleCode = "510", HasChild = false, MaterialId = "1001", SpecId = "1001_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "6", ParentId = null, BomId = "6", EleCode = "610", HasChild = false, MaterialId = "1001", SpecId = "1001_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "7", ParentId = null, BomId = "7", EleCode = "710", HasChild = false, MaterialId = "1001", SpecId = "1001_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "8", ParentId = null, BomId = "8", EleCode = "810", HasChild = false, MaterialId = "1001", SpecId = "1001_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "9", ParentId = null, BomId = "9", EleCode = "910", HasChild = false, MaterialId = "1001", SpecId = "1001_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "10", ParentId = null, BomId = "10", EleCode = "1010", HasChild = false, MaterialId = "1001", SpecId = "1001_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });

            //前锥
            builder.HasData(new MaterialBomTree() { Id = "21", ParentId = null, BomId = "1", EleCode = "101", HasChild = true, MaterialId = "1002", SpecId = "1002_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "22", ParentId = null, BomId = "2", EleCode = "201", HasChild = true, MaterialId = "1002", SpecId = "1002_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "23", ParentId = null, BomId = "3", EleCode = "301", HasChild = true, MaterialId = "1002", SpecId = "1002_04", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "24", ParentId = null, BomId = "4", EleCode = "401", HasChild = true, MaterialId = "1002", SpecId = "1002_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "25", ParentId = null, BomId = "5", EleCode = "501", HasChild = true, MaterialId = "1002", SpecId = "1002_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "26", ParentId = null, BomId = "6", EleCode = "601", HasChild = true, MaterialId = "1002", SpecId = "1002_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "27", ParentId = null, BomId = "7", EleCode = "701", HasChild = true, MaterialId = "1002", SpecId = "1002_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "28", ParentId = null, BomId = "8", EleCode = "801", HasChild = true, MaterialId = "1002", SpecId = "1002_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "29", ParentId = null, BomId = "9", EleCode = "901", HasChild = true, MaterialId = "1002", SpecId = "1002_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "30", ParentId = null, BomId = "10", EleCode = "1001", HasChild = true, MaterialId = "1002", SpecId = "1002_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            //前锥拼板
            builder.HasData(new MaterialBomTree() { Id = "121", ParentId = "21", BomId = "1", EleCode = "106", HasChild = false, MaterialId = "10021", SpecId = "10021_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "122", ParentId = "22", BomId = "2", EleCode = "206", HasChild = false, MaterialId = "10021", SpecId = "10021_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "123", ParentId = "23", BomId = "3", EleCode = "306", HasChild = false, MaterialId = "10021", SpecId = "10021_04", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "124", ParentId = "24", BomId = "4", EleCode = "406", HasChild = false, MaterialId = "10021", SpecId = "10021_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "125", ParentId = "25", BomId = "5", EleCode = "506", HasChild = false, MaterialId = "10021", SpecId = "10021_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "126", ParentId = "26", BomId = "6", EleCode = "606", HasChild = false, MaterialId = "10021", SpecId = "10021_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "127", ParentId = "27", BomId = "7", EleCode = "706", HasChild = false, MaterialId = "10021", SpecId = "10021_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "128", ParentId = "28", BomId = "8", EleCode = "806", HasChild = false, MaterialId = "10021", SpecId = "10021_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "129", ParentId = "29", BomId = "9", EleCode = "906", HasChild = false, MaterialId = "10021", SpecId = "10021_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "130", ParentId = "30", BomId = "10", EleCode = "1006", HasChild = false, MaterialId = "10021", SpecId = "10021_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            //中筒
            builder.HasData(new MaterialBomTree() { Id = "31", ParentId = null, BomId = "1", EleCode = "102", HasChild = true, MaterialId = "1003", SpecId = "1003_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "32", ParentId = null, BomId = "2", EleCode = "202", HasChild = true, MaterialId = "1003", SpecId = "1003_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "33", ParentId = null, BomId = "3", EleCode = "302", HasChild = true, MaterialId = "1003", SpecId = "1003_04", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "34", ParentId = null, BomId = "4", EleCode = "402", HasChild = true, MaterialId = "1003", SpecId = "1003_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "35", ParentId = null, BomId = "5", EleCode = "502", HasChild = true, MaterialId = "1003", SpecId = "1003_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "36", ParentId = null, BomId = "6", EleCode = "602", HasChild = true, MaterialId = "1003", SpecId = "1003_07", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "37", ParentId = null, BomId = "7", EleCode = "702", HasChild = true, MaterialId = "1003", SpecId = "1003_08", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "38", ParentId = null, BomId = "8", EleCode = "802", HasChild = true, MaterialId = "1003", SpecId = "1003_09", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "39", ParentId = null, BomId = "9", EleCode = "902", HasChild = true, MaterialId = "1003", SpecId = "1003_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "40", ParentId = null, BomId = "10", EleCode = "1002", HasChild = true, MaterialId = "1003", SpecId = "1003_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            //中筒拼板
            builder.HasData(new MaterialBomTree() { Id = "131", ParentId = "31", BomId = "1", EleCode = "107", HasChild = false, MaterialId = "10031", SpecId = "10031_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "132", ParentId = "32", BomId = "2", EleCode = "207", HasChild = false, MaterialId = "10031", SpecId = "10031_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "133", ParentId = "33", BomId = "3", EleCode = "307", HasChild = false, MaterialId = "10031", SpecId = "10031_04", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "134", ParentId = "34", BomId = "4", EleCode = "407", HasChild = false, MaterialId = "10031", SpecId = "10031_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "135", ParentId = "35", BomId = "5", EleCode = "507", HasChild = false, MaterialId = "10031", SpecId = "10031_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "136", ParentId = "36", BomId = "6", EleCode = "607", HasChild = false, MaterialId = "10031", SpecId = "10031_07", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "137", ParentId = "37", BomId = "7", EleCode = "707", HasChild = false, MaterialId = "10031", SpecId = "10031_08", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "138", ParentId = "38", BomId = "8", EleCode = "807", HasChild = false, MaterialId = "10031", SpecId = "10031_09", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "139", ParentId = "39", BomId = "9", EleCode = "907", HasChild = false, MaterialId = "10031", SpecId = "10031_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "140", ParentId = "40", BomId = "10", EleCode = "1007", HasChild = false, MaterialId = "1003", SpecId = "10021_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            //后锥前
            builder.HasData(new MaterialBomTree() { Id = "41", ParentId = null, BomId = "1", EleCode = "103", HasChild = true, MaterialId = "1004", SpecId = "1004_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "42", ParentId = null, BomId = "2", EleCode = "203", HasChild = true, MaterialId = "1004", SpecId = "1004_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "43", ParentId = null, BomId = "3", EleCode = "303", HasChild = true, MaterialId = "1004", SpecId = "1004_04", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "44", ParentId = null, BomId = "4", EleCode = "403", HasChild = true, MaterialId = "1004", SpecId = "1004_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "45", ParentId = null, BomId = "5", EleCode = "503", HasChild = true, MaterialId = "1004", SpecId = "1004_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "46", ParentId = null, BomId = "6", EleCode = "603", HasChild = true, MaterialId = "1004", SpecId = "1004_08", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "47", ParentId = null, BomId = "7", EleCode = "703", HasChild = true, MaterialId = "1004", SpecId = "1004_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "48", ParentId = null, BomId = "8", EleCode = "803", HasChild = true, MaterialId = "1004", SpecId = "1004_07", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "49", ParentId = null, BomId = "9", EleCode = "903", HasChild = true, MaterialId = "1004", SpecId = "1004_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "50", ParentId = null, BomId = "10", EleCode = "1003", HasChild = true, MaterialId = "1004", SpecId = "1004_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            //后锥前拼板
            builder.HasData(new MaterialBomTree() { Id = "141", ParentId = "41", BomId = "1", EleCode = "108", HasChild = false, MaterialId = "10041", SpecId = "10041_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "142", ParentId = "42", BomId = "2", EleCode = "208", HasChild = false, MaterialId = "10041", SpecId = "10041_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "143", ParentId = "43", BomId = "3", EleCode = "308", HasChild = false, MaterialId = "10041", SpecId = "10041_04", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "144", ParentId = "44", BomId = "4", EleCode = "408", HasChild = false, MaterialId = "10041", SpecId = "10041_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "145", ParentId = "45", BomId = "5", EleCode = "508", HasChild = false, MaterialId = "10041", SpecId = "10041_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "146", ParentId = "46", BomId = "6", EleCode = "608", HasChild = false, MaterialId = "10041", SpecId = "10041_08", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "147", ParentId = "47", BomId = "7", EleCode = "708", HasChild = false, MaterialId = "10041", SpecId = "10041_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "148", ParentId = "48", BomId = "8", EleCode = "808", HasChild = false, MaterialId = "10041", SpecId = "10041_07", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "149", ParentId = "49", BomId = "9", EleCode = "908", HasChild = false, MaterialId = "10041", SpecId = "10041_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "150", ParentId = "50", BomId = "10", EleCode = "1008", HasChild = false, MaterialId = "10041", SpecId = "10041_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            //后锥后
            builder.HasData(new MaterialBomTree() { Id = "51", ParentId = null, BomId = "1", EleCode = "104", HasChild = true, MaterialId = "1005", SpecId = "1005_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "52", ParentId = null, BomId = "2", EleCode = "204", HasChild = true, MaterialId = "1005", SpecId = "1005_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "53", ParentId = null, BomId = "3", EleCode = "304", HasChild = true, MaterialId = "1005", SpecId = "1005_04", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "54", ParentId = null, BomId = "4", EleCode = "404", HasChild = true, MaterialId = "1005", SpecId = "1005_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "55", ParentId = null, BomId = "5", EleCode = "504", HasChild = true, MaterialId = "1005", SpecId = "1005_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "56", ParentId = null, BomId = "6", EleCode = "604", HasChild = true, MaterialId = "1005", SpecId = "1005_08", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "57", ParentId = null, BomId = "7", EleCode = "704", HasChild = true, MaterialId = "1005", SpecId = "1005_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "58", ParentId = null, BomId = "8", EleCode = "804", HasChild = true, MaterialId = "1005", SpecId = "1005_07", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "59", ParentId = null, BomId = "9", EleCode = "904", HasChild = true, MaterialId = "1005", SpecId = "1005_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "60", ParentId = null, BomId = "10", EleCode = "1004", HasChild = true, MaterialId = "1005", SpecId = "1005_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            //后锥后拼板
            builder.HasData(new MaterialBomTree() { Id = "151", ParentId = "51", BomId = "1", EleCode = "109", HasChild = false, MaterialId = "10051", SpecId = "10051_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "152", ParentId = "52", BomId = "2", EleCode = "209", HasChild = false, MaterialId = "10051", SpecId = "10051_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "153", ParentId = "53", BomId = "3", EleCode = "309", HasChild = false, MaterialId = "10051", SpecId = "10051_04", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "154", ParentId = "54", BomId = "4", EleCode = "409", HasChild = false, MaterialId = "10051", SpecId = "10051_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "155", ParentId = "55", BomId = "5", EleCode = "509", HasChild = false, MaterialId = "10051", SpecId = "10051_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "156", ParentId = "56", BomId = "6", EleCode = "609", HasChild = false, MaterialId = "10051", SpecId = "10051_08", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "157", ParentId = "57", BomId = "7", EleCode = "709", HasChild = false, MaterialId = "10051", SpecId = "10021_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "158", ParentId = "58", BomId = "8", EleCode = "809", HasChild = false, MaterialId = "10051", SpecId = "10051_07", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "159", ParentId = "59", BomId = "9", EleCode = "909", HasChild = false, MaterialId = "10051", SpecId = "10051_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "160", ParentId = "60", BomId = "10", EleCode = "1009", HasChild = false, MaterialId = "10051", SpecId = "10051_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            //滚道
            builder.HasData(new MaterialBomTree() { Id = "61", ParentId = null, BomId = "1", EleCode = "115", HasChild = false, MaterialId = "1011", SpecId = "1011_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "62", ParentId = null, BomId = "2", EleCode = "215", HasChild = false, MaterialId = "1011", SpecId = "1011_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "63", ParentId = null, BomId = "3", EleCode = "315", HasChild = false, MaterialId = "1011", SpecId = "1011_04", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "64", ParentId = null, BomId = "4", EleCode = "415", HasChild = false, MaterialId = "1011", SpecId = "1011_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "65", ParentId = null, BomId = "5", EleCode = "515", HasChild = false, MaterialId = "1011", SpecId = "1011_05", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "66", ParentId = null, BomId = "6", EleCode = "615", HasChild = false, MaterialId = "1011", SpecId = "1011_07", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "67", ParentId = null, BomId = "7", EleCode = "715", HasChild = false, MaterialId = "1011", SpecId = "1011_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "68", ParentId = null, BomId = "8", EleCode = "815", HasChild = false, MaterialId = "1011", SpecId = "1011_06", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "69", ParentId = null, BomId = "9", EleCode = "915", HasChild = false, MaterialId = "1011", SpecId = "1011_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "70", ParentId = null, BomId = "10", EleCode = "1015", HasChild = false, MaterialId = "1011", SpecId = "1011_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });

            //工装
            builder.HasData(new MaterialBomTree() { Id = "71", ParentId = null, BomId = "1", EleCode = "116", HasChild = false, MaterialId = "1012", SpecId = "1012_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "82", ParentId = null, BomId = "2", EleCode = "216", HasChild = false, MaterialId = "1012", SpecId = "1012_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "73", ParentId = null, BomId = "3", EleCode = "316", HasChild = false, MaterialId = "1012", SpecId = "1012_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "74", ParentId = null, BomId = "4", EleCode = "416", HasChild = false, MaterialId = "1012", SpecId = "1012_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "75", ParentId = null, BomId = "5", EleCode = "516", HasChild = false, MaterialId = "1012", SpecId = "1012_02", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "76", ParentId = null, BomId = "6", EleCode = "616", HasChild = false, MaterialId = "1012", SpecId = "1012_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "77", ParentId = null, BomId = "7", EleCode = "716", HasChild = false, MaterialId = "1012", SpecId = "1012_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "78", ParentId = null, BomId = "8", EleCode = "816", HasChild = false, MaterialId = "1012", SpecId = "1012_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "79", ParentId = null, BomId = "9", EleCode = "916", HasChild = false, MaterialId = "1012", SpecId = "1012_01", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "80", ParentId = null, BomId = "10", EleCode = "1016", HasChild = false, MaterialId = "1012", SpecId = "1012_03", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });

            //叶片组
            builder.HasData(new MaterialBomTree() { Id = "1008_01", ParentId = null, BomId = "1", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_000", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_02", ParentId = null, BomId = "2", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_000", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_03", ParentId = null, BomId = "3", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_000", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_04", ParentId = null, BomId = "4", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_000", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05", ParentId = null, BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_000", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_06", ParentId = null, BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_000", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07", ParentId = null, BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_000", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08", ParentId = null, BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_000", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_09", ParentId = null, BomId = "9", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_000", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_10", ParentId = null, BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_000", Quantity = 1, CreateUserId = "1", ModifyUserId = "1" });

            //叶片 TG01103
            builder.HasData(new MaterialBomTree() { Id = "1008_05_01", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_028", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05_02", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_029", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05_03", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_030", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05_04", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_031", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05_05", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_032", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05_06", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_033", Quantity = 12, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05_07", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_034", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05_08", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_035", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05_09", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_036", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05_10", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_037", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05_11", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_038", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05_12", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_039", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_05_13", ParentId = "1008_05", BomId = "5", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_040", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });

            //叶片 TG01088
            builder.HasData(new MaterialBomTree() { Id = "1008_06_01", ParentId = "1008_06", BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_001", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_06_02", ParentId = "1008_06", BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_002", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_06_03", ParentId = "1008_06", BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_003", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_06_04", ParentId = "1008_06", BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_004", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_06_05", ParentId = "1008_06", BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_005", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_06_06", ParentId = "1008_06", BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_006", Quantity = 8, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_06_07", ParentId = "1008_06", BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_007", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_06_08", ParentId = "1008_06", BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_008", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_06_09", ParentId = "1008_06", BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_009", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_06_10", ParentId = "1008_06", BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_010", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_06_11", ParentId = "1008_06", BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_011", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_06_12", ParentId = "1008_06", BomId = "6", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_012", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });

            //叶片 TG01094
            builder.HasData(new MaterialBomTree() { Id = "1008_07_01", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_014", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_02", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_015", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_03", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_016", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_04", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_017", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_05", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_018", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_06", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_019", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_07", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_020", Quantity = 8, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_08", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_021", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_09", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_022", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_10", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_023", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_11", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_024", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_12", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_025", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_13", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_026", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_07_14", ParentId = "1008_07", BomId = "7", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_027", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });

            //叶片  TG01108
            builder.HasData(new MaterialBomTree() { Id = "1008_08_01", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_013", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_02", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_014", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_03", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_015", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_04", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_016", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_05", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_017", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_06", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_018", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_07", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_019", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_08", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_020", Quantity = 10, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_09", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_021", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_10", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_022", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_11", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_023", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_12", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_024", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_13", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_025", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_14", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_026", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_08_15", ParentId = "1008_08", BomId = "8", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_027", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });

            //叶片  TG011010
            builder.HasData(new MaterialBomTree() { Id = "1008_10_02", ParentId = "1008_10", BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_014", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_10_03", ParentId = "1008_10", BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_015", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_10_04", ParentId = "1008_10", BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_016", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_10_05", ParentId = "1008_10", BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_017", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_10_06", ParentId = "1008_10", BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_018", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_10_07", ParentId = "1008_10", BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_019", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_10_08", ParentId = "1008_10", BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_041", Quantity = 12, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_10_09", ParentId = "1008_10", BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_042", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_10_10", ParentId = "1008_10", BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_043", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_10_11", ParentId = "1008_10", BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_044", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_10_12", ParentId = "1008_10", BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_045", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new MaterialBomTree() { Id = "1008_10_13", ParentId = "1008_10", BomId = "10", EleCode = "1005", HasChild = false, MaterialId = "1008", SpecId = "1008_046", Quantity = 2, CreateUserId = "1", ModifyUserId = "1" });
            #endregion
        }
    }
}
